*{
	margin: 0;
	padding: 0;
	font-family: "Comic Sans MS";
	font-size: 18px;
}
table,thead,tbody,tr,td{
	box-sizing: border-box;
	-ms-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
}
body{
	background: #ddd;
}
/*计算器整体样式*/
table{
	width: 400px;
	height: 300px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -150px;
	margin-left: -200px;
	background: #1d1d1d;
	padding: 3px;
}
/*输入框*/
thead{
	background: #2e2e2e;
}
thead tr{
	height: 70px;
}
thead tr td{
	border-top: 2px solid #2e4814;
	border-bottom: 5px solid #1d1d1d;
	position: relative;
}
thead tr td input{
	color: #fff;
	background: #2e2e2e;
	border: 0;
	width: 96%;
	height: 40px;
	font-size: 34px;
	text-align: right;
	padding-bottom: 0;
	position: absolute;
	bottom: 8px;
	right: 5px;
	box-shadow: none;
	outline: none;
}
/*计算器按键*/
tbody{
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
tbody tr{
	height: 30px;
}
tbody tr td{
	width: 60px;
	text-align: center;
	background-color: #3f3f3f;
	color: #d1cccc;
	cursor: pointer;
}
tbody tr .bgf{
	width: 5px;
	background: #1d1d1d;
}
tbody tr .number{
	color: #fff;
	font-size: 24px;
}
/*清除*/
#clear{
	z-index: 999;
	background: url(../images/clear.png) no-repeat;
	background-color: #3f3f3f;
	background-size: 22px;
	background-position: center;
}